//
//  ASUserModel.h
//  AvatarShow
//
//  Created by xunruiIOS on 2021/4/27.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface ASUserModel : ASBaseModel <NSCoding>

@property (nonatomic, copy) NSString  *userid;
@property (nonatomic, copy) NSString  *nickname;
@property (nonatomic, copy) NSString  *avatar;              //头像
@property (nonatomic, copy) NSString  *mobile;              //手机号
@property (nonatomic, copy) NSString  *account_type;        //登录类型
@property (nonatomic, copy) NSString  *signature;           //个性签名
@property (nonatomic, copy) NSString  *sex;                 //0:其它,1:男,2:女
@property (nonatomic, copy) NSString  *cook_items;          //发布菜谱数量
@property (nonatomic, copy) NSString  *islock;              //0正常用户;1功能限制,2限制登录,3申请注销
@property (nonatomic, copy) NSString  *token;               //token
@property (nonatomic, copy) NSString  *user_dot;            //是否显示红点
@property (nonatomic, copy) NSString  *collect_num;         //收藏数量
@property (nonatomic, copy) NSString  *cook_tmp_items;      //草稿量
@property (nonatomic, copy) NSString  *sexStr;
@property (nonatomic, copy) NSString  *level;
@property (nonatomic, copy) NSString  *username;
@property (nonatomic, copy) UIImage *iconImage;
@property (nonatomic, copy) NSString *hasYouKe;         ///1游客

@end

@interface ASUserManager : NSObject

@property (strong,nonatomic) ASUserModel *userInfo;
@property (assign,nonatomic) BOOL isLogin;
@property (assign,nonatomic) BOOL hasYouKe;

+ (instancetype)sharedManger;

-(void)archiverUserInfo:(ASUserModel *)userInfo;
-(void)unArchiverUserInfo;
- (void)removeUserData;

@end

NS_ASSUME_NONNULL_END
